package com.hf.work04;

/**
 * 文学系
 * @author Lenovo-Healer
 */
public class LetterDepartment extends Student{
    /**
     * 演讲
     */
    private double lectrure;
    /**
     * 作品
     */
    private double works;

    /**
     * 综合成绩
     */
    @Override
    public double sumScore() {
        return this.getLectrure()*0.35 + this.getWorks()*0.35 + this.getStuFinal()*0.15 + this.getStuMiddle()*0.15;
    }

    public LetterDepartment() {
    }
    /**
     * 有参构造方法
     * @param stuNo 学号
     * @param stuName 姓名
     * @param stuSex 性别
     * @param stuAge 年龄
     * @param lectrure 演讲
     * @param works 作品
     * @param stuFinal 期末成绩
     * @param stuMiddle 期中成绩
     */
    public LetterDepartment(int stuNo, String stuName, String stuSex, int stuAge, double stuFinal, double stuMiddle, double lectrure, double works) {
        super(stuNo, stuName, stuSex, stuAge, stuFinal, stuMiddle);
        this.lectrure = lectrure;
        this.works = works;
    }




    public double getLectrure() {
        return lectrure;
    }

    public void setLectrure(double lectrure) {
        this.lectrure = lectrure;
    }

    public double getWorks() {
        return works;
    }

    public void setWorks(double works) {
        this.works = works;
    }
}
